package com.huilian.iotbox.mqtt.server.base.service;

import com.huilian.iotbox.data.dto.OrderDto;
import com.huilian.iotbox.data.po.Order;
import com.huilian.iotbox.data.vo.DeviceVo;
import com.huilian.iotbox.data.vo.OrderVo;


/**
 * @author lizhiquan
 * @CreateDate: 2021-04-02-15-33
 * @Description:
 */
public interface OrderService {

    Integer updateStatusById(OrderDto order);

    OrderDto getById(Long orderId);

    Integer insert(OrderDto order);

    Order findOneOrderByCondition(Order condition);

    Boolean processingShipments(String content, DeviceVo deviceVo, String payNo, String productKey);

    Boolean LatticeProcessingShipments(DeviceVo deviceVo, String payNo, String productKey,Integer hierarchy,Integer freightLane,Integer  shipmentStatus);

    OrderVo findByPayNo(String payNo,String deviceNo);
}
